# -*- coding: utf-8 -*-
import os
import sys

pwd = os.path.dirname(os.path.dirname(__file__))

# 进入django设置
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shop.settings')

import django

django.setup()

from goods.models import Good, GoodCategory, GoodCarouselImage
from db_tool.data.product_data import row_data


for item in Good.objects.all():
    item.cover = 'http://shop.projectsedu.com/media/goods/images/7_P_1448945104883.jpg'
    item.save()